package com.zhangxin.threadcoreknowledge;

/**
 * 实现Runnable的方法
 */
public class RunnableStyle implements Runnable{
    @Override
    public void run() {
        System.out.println("用Runnable的方式实现线程");
    }

    public static void main(String[] args) {
        Thread thread = new Thread(new RunnableStyle());
        thread.start();
    }
}
